package com.ruoyi.system.api.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 订单对象 car_orders
 * 
 * @author ruoyi
 * @date 2024-09-09
 */
public class CarOrders extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private CarUser carUser;
    private CarMerchant carMerchant;
    private CarServiceDetail carServiceDetail;
    private CarServiceType carServiceType;
    private CarShopCoupon carShopCoupon;

    /** 手机号(不能为空) */
    @Excel(name = "手机号(不能为空)")
    private String userPhone;

    private String searchValue;

    @Override
    public String getSearchValue() {
        return searchValue;
    }

    @Override
    public void setSearchValue(String searchValue) {
        this.searchValue = searchValue;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endOrderTime;

    public Date getEndOrderTime() {
        return endOrderTime;
    }

    public void setEndOrderTime(Date endOrderTime) {
        this.endOrderTime = endOrderTime;
    }

    @Excel(name = "服务分类")
    private String serSort;

    public String getSerSort() {
        return serSort;
    }

    public void setSerSort(String serSort) {
        this.serSort = serSort;
    }

    public CarUser getCarUser() {
        return carUser;
    }

    public void setCarUser(CarUser carUser) {
        this.carUser = carUser;
    }

    public CarMerchant getCarMerchant() {
        return carMerchant;
    }

    public void setCarMerchant(CarMerchant carMerchant) {
        this.carMerchant = carMerchant;
    }

    public CarServiceDetail getCarServiceDetail() {
        return carServiceDetail;
    }

    public void setCarServiceDetail(CarServiceDetail carServiceDetail) {
        this.carServiceDetail = carServiceDetail;
    }

    public CarServiceType getCarServiceType() {
        return carServiceType;
    }

    public void setCarServiceType(CarServiceType carServiceType) {
        this.carServiceType = carServiceType;
    }

    public CarShopCoupon getCarShopCoupon() {
        return carShopCoupon;
    }

    public void setCarShopCoupon(CarShopCoupon carShopCoupon) {
        this.carShopCoupon = carShopCoupon;
    }

    /** 订单 */
    private Long ordId;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String ordNumber;

    /** 关联服务详细表id */
    @Excel(name = "关联服务详细表id")
    private Long serviceDetailId;

    /** 关联用户id */
    @Excel(name = "关联用户id")
    private Long userId;

    /** 关联商户id */
    @Excel(name = "关联商户id")
    private Long merchantId;

    /** 关联优惠卷id */
    @Excel(name = "关联优惠卷id")
    private Long couId;

    /** 订单实付金额 */
    @Excel(name = "订单实付金额")
    private BigDecimal ordActualPrice;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private String ordStatus;

    /** 下单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date ordOrderTime;



    /** 核销编码 */
    @Excel(name = "核销编码")
    private String ordVerificationCode;

    public void setOrdId(Long ordId) 
    {
        this.ordId = ordId;
    }

    public Long getOrdId() 
    {
        return ordId;
    }
    public void setOrdNumber(String ordNumber) 
    {
        this.ordNumber = ordNumber;
    }

    public String getOrdNumber() 
    {
        return ordNumber;
    }
    public void setServiceDetailId(Long serviceDetailId) 
    {
        this.serviceDetailId = serviceDetailId;
    }

    public Long getServiceDetailId() 
    {
        return serviceDetailId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setMerchantId(Long merchantId) 
    {
        this.merchantId = merchantId;
    }

    public Long getMerchantId() 
    {
        return merchantId;
    }
    public void setCouId(Long couId) 
    {
        this.couId = couId;
    }

    public Long getCouId() 
    {
        return couId;
    }
    public void setOrdActualPrice(BigDecimal ordActualPrice) 
    {
        this.ordActualPrice = ordActualPrice;
    }

    public BigDecimal getOrdActualPrice() 
    {
        return ordActualPrice;
    }
    public void setOrdStatus(String ordStatus) 
    {
        this.ordStatus = ordStatus;
    }

    public String getOrdStatus() 
    {
        return ordStatus;
    }
    public void setOrdOrderTime(Date ordOrderTime) 
    {
        this.ordOrderTime = ordOrderTime;
    }

    public Date getOrdOrderTime() 
    {
        return ordOrderTime;
    }
    public void setOrdVerificationCode(String ordVerificationCode) 
    {
        this.ordVerificationCode = ordVerificationCode;
    }

    public String getOrdVerificationCode() 
    {
        return ordVerificationCode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("ordId", getOrdId())
            .append("ordNumber", getOrdNumber())
            .append("serviceDetailId", getServiceDetailId())
            .append("userId", getUserId())
            .append("merchantId", getMerchantId())
            .append("couId", getCouId())
            .append("ordActualPrice", getOrdActualPrice())
            .append("ordStatus", getOrdStatus())
            .append("ordOrderTime", getOrdOrderTime())
            .append("ordVerificationCode", getOrdVerificationCode())
            .toString();
    }
}
